//导入资源
import request from '@/utils/request'

//定义路径
const api_name = `/admin/cmn/dict`;
export default {
    //根据dictCode获取下级节点
    findByDictCode(dictCode) {
        return request({
            url: `${api_name}/findByDictCode/${dictCode}`,
            method: 'get'
        })
    },
    //根据id值获取下级节点
    findByParentId(id) {
        return request({
            url: `${api_name}/findChildData/${id}`,
            method: 'get'
        })
    }
}